<?php echo $this->render('/manage/header.phtml');?>
</head>
<body>
<?php
	$authorInfo = Zend_Registry::get('database')->author;
?>
<div id="body-wrapper">
<?php echo $this->render('/manage/sidebar.phtml');?>
<div id="main-content">
    <h2>Author List</h2>
    <ul class="shortcut-buttons-set">
      <li>
      	<a class="shortcut-button" href="<?php echo APPLICATION_URL; ?>/manage/edit-author/id/0"><span> <img src="<?php echo APPLICATION_PUBLIC; ?>/images/admin/icons/pencil_48.png" alt="icon"><br>
        Add an Author </span></a>
      </li>
    </ul>
    <div class="clear"></div>
    <div class="content-box">
      <div class="content-box-header">
        <h3>Content box</h3>
        <div class="clear"></div>
      </div>
      <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
          <table>
            <thead>
              <tr>
                <th>ID</th>
                <th>Author</th>
                <th>Userid</th>
                <th>Operation</th>
              </tr>
            </thead>
            <tbody>
<?php foreach ($this->authors as $key => $value) {?>
              <tr>
                <td><?php echo $value[$authorInfo->id];?></td>
                <td><?php echo $value[$authorInfo->author];?></td>
                <td><?php echo $value[$authorInfo->userid];?></td>
                <td>
                  <a href="<?php echo APPLICATION_URL; ?>/manage/edit-author/id/<?php echo $value[$authorInfo->id];?>" title="Edit"><img src="<?php echo APPLICATION_PUBLIC; ?>/images/admin/icons/pencil.png" alt="Edit" /></a>
              </tr>
<?php }?>
            </tbody>
          </table>
        </div>
      </div>
    </div>
    <div class="clear"></div>
<?php echo $this->render('/manage/footer.phtml');?>
</div>
</div>
</body>
</html>